<?php /* Smarty version Smarty-3.1.19, created on 2017-11-14 11:46:07
         compiled from "/www/wwwroot/kq.nabaowan.cn/sdk/theme/admin/default/views/shuttle/index.html" */ ?>
<?php /*%%SmartyHeaderCode:12308089875a02b95a3ee453-47133625%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '82b66fdeff85e3aa386a1510c5f2f7f3fce211ed' => 
    array (
      0 => '/www/wwwroot/kq.nabaowan.cn/sdk/theme/admin/default/views/shuttle/index.html',
      1 => 1510631143,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12308089875a02b95a3ee453-47133625',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5a02b95a42bac0_13321815',
  'variables' => 
  array (
    'list' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a02b95a42bac0_13321815')) {function content_5a02b95a42bac0_13321815($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<div class="main-content">

<div class="page-content">

  <div class="page-content-area" style="opacity: 0.8;"> <br>

    <div class="page-header">

      <h1> 考勤管理 <small><i class="ace-icon fa fa-angle-double-right"></i> 考勤列表 </small> </h1>

    </div>

    <div class="row">

      <div class="col-xs-12">

        <div class="panel panel-info">

          <div class="panel-heading" onclick="$(this).parent().find('.panel-body').toggle()">筛选</div>

          <div class="panel-body">

            <div class="form-group form-search form-inline">

              <label class="control-label">关键词</label>

              <input id="keywords" name="keywords" value="<?php echo $_GET['keywords'];?>
" type="text"/>

              <button class="btn btn-default btn-sm btn-search"><i class="fa fa-search"></i> 搜索</button>

            </div>

          </div>

        </div>

        <form method="post" class="form-horizontal" role="form" id="submitform" onsubmit="return false">

          <table class="table table-bordered table-hover">

            <thead>

              <tr>

                <th>ID</th>

                <th>姓名</th>

                <th>设备</th>

                <th>卡号</th>

                <th>图片</th>

                <th>图片2</th>

                <th>时间</th>

              </tr>

            </thead>

            <tbody>

            

            <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_fromtemp = $_smarty_tpl->tpl_vars['list']->value['data']; $_from = $_smarty_tpl->tpl_vars['list']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if($_fromtemp)foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>

            <tr>

              <td><input type="checkbox" name="id[]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"/>

                <?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>

              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>

              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['device_id'];?>
</td>

              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['iccode'];?>
</td>

              <td><a href="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic'];?>
" target="_blank"><img width="50" height="50" src="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic'];?>
" /></a></td>
              
              <td><a href="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic_second'];?>
" target="_blank"><img width="50" height="50" src="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic_second'];?>
" /></a></td>

              <td><?php echo formattime($_smarty_tpl->tpl_vars['v']->value['add_time']);?>
</td>

            </tr>

            <?php } ?>

            <tr>

              <td colspan="7"><input type="checkbox" onclick="var ck = this.checked;$('input[name=&quot;id[]&quot;]').each(function(){ this.checked = ck });">

                <a class="btn btn-default btn-delete">删除</a></td>

            </tr>

              </tbody>

            

          </table>

          <table style="width:100%;" class="listpage">

            <tr>

              <td><?php echo showpage($_smarty_tpl->tpl_vars['list']->value['page']);?>
</td>

            </tr>

          </table>

        </form>

      </div>

    </div>

  </div>

</div>

<script>

$(function(){

	$('.btn-delete').click(function(){

		var ckvals = $.selectCK('input[name="id[]"]');

		if(!ckvals){

			tooltipbox.show('请选择要操作的数据');

			return false;

		}

		tooltipbox.confirm('确定永久删除选中的数据？', function(data){

			tooltipbox.show('正在执行操作...');

			$.post('<?php echo siteurl("con=admin/shuttle/delete");?>
', data, function(res){

				if(res.code == 1){

					location.reload();

				}

				tooltipbox.show(res.msg);

			}, 'json').error(function(){

				tooltipbox.show('数据或网络错误');

			});

		}, false, { 'ids': ckvals });

	});

});

</script> 

<?php echo $_smarty_tpl->getSubTemplate ('public/footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 <?php }} ?>
